package com.link.base.base.contract.service;

import com.link.base.base.contract.dao.mybatis.mapper.MaterialCodeMapper;
import com.link.base.base.contract.model.MaterialCode;
import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.core.basic.service.BasicServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 物料编码表
 *
 * @author 王昊
 * @date 2021-06-03 11:01:46
 */
@Service
public class MaterialCodeServiceImpl extends BasicServiceImpl<MaterialCode> implements MaterialCodeService {

    @Resource
    private MaterialCodeMapper    materialCodeMapper;

    @Override
    public BasicMapper<MaterialCode> getBasicMapper() {
        return materialCodeMapper;
    }

    @Override
    public MaterialCode queryOneByErpId(MaterialCode materialCode) throws Exception {
        return materialCodeMapper.queryOneByErpId(materialCode);
    }
}